<template>
  <div style="padding: 0 12px;">
    <i :class="[isActive ? 'is-active-right' : 'is-active-left', 'el-icon-refresh', 'refresh']" />
  </div>
</template>

<script>
export default {
  name: 'Refresh',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick() {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style lang="scss" scoped>
.refresh {
  display: inline-block;
  vertical-align: middle;
  font-size: 17px;
  color: #515a6e;
  width: 18px;
  height: 18px;
}

.refresh.is-active-right {
  transform: rotate(360deg);
  transition: transform 1s;
}
.refresh.is-active-left {
  transform: rotate(-360sdeg);
  transition: transform 1s;
}
</style>
